package org.dzq.designmode.command;

/**
 * @ClassName: Test
 * @Package: org.dzq.designmode.command
 * @author: 越
 * @date: 2023/6/19 21:00
 * @Description: 命令模式想象成controller service dao层会比较好理解
 */
public class Test {

    public static void main(String[] args) {
        Receiver receiver = new Receiver();
        Command command = new ConcreteCommand(receiver);
        Invoker invoker = new Invoker(command);
        invoker.invoke();
    }
}
